﻿
// RollingDlg.h: 头文件
//
#pragma once
#include "CRandNum.h"
#include "CRollingDoc.h"

// CRollingDlg 对话框
class CRollingDlg : public CDialogEx
{
	// 构造
public:
	CRollingDlg(CWnd* pParent = nullptr);	// 标准构造函数
	virtual ~CRollingDlg();
	// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_ROLLING_DIALOG };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


	// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()


private:
	CString m_editNum;

	CRollingDoc m_doc;
public:
	afx_msg void OnBnClickedButtonCtrl();

private:
	void SwitchStatus();
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
private:
	CString m_staticShow;
public:
	afx_msg void OnEnChangeEditNum();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void Serialize(CArchive& ar);
private:
	void SerializeSave() noexcept;
	void SerializeLoad() noexcept;
};
